#ifndef _P_H_
#define _P_H_

#include<stdio.h>
#include<stdlib.h>
#include<sys/socket.h>
#include<netinet/in.h>
#include<string.h>
#include<strings.h>
#include<sqlite3.h>
#include<fcntl.h>
#include<sys/types.h>
#include<arpa/inet.h>
#include<unistd.h>
#include<sys/stat.h>
#define N 20
typedef struct usermsg
{
	int userID;
	char username[N];
	char pwd[N];
}Usermsg;
typedef struct mymod
{
	int modid;
	char modname[N];
	char property[N];
}Mymod;
int c_Upload(int tcp_socket,const char *filename);
int c_Download(int tcp_socket,char *filename);
int do_work(int tcp_socket,char *cmd ,char *filename);
int parseStr(char *buf,char *cmd,char * filename);
int tcp_connect(const char*ip,int port);
int tcp_com(int tcp_socket);
int tcp_newcom(int tcp_socket);
void interface(void);
int sqlite3zsgc(int tcp_socket);
#endif
